import request from '../../utils/request'

/**
 * 查询自己的任务
 *
 * @param {object} query 查询参数Obj
 * @returns
 */
export const listTask =  (query?: any) => {
	return  request({
		url: "/task/task",
		method: "get",
		params: query,
	});
};
export const saveTask =  (query?: any) => {
	return  request({
		url: "/task/savetask",
		method: "post",
		data: query,
	});
};
export const editStatus =  (query?: any) => {
	return  request({
		url: "/task/editstatus",
		method: "put",
		params: query,
	});
};
export const editTask =  (query?: any) => {
	return  request({
		url: "/task/edittask",
		method: "post",
		data: query,
	});
};
export const DeleteTask =  (taskIds?: any) => {
	return  request({
		url: `/task/${taskIds}`,
		method: "delete",
	});
};

